-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add permissions for ELB to create service linked roles #489
Add permissions for ELB to create service linked roles #489
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: randomvariable The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Actual AWS IAM policy conditions can be of various types. Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
1c8b3f6
to
9c31fa9
Compare
9c31fa9
to
ae0a487
Compare
Ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor detail, rest lgtm
pkg/cloud/aws/services/iam/types.go
Outdated
} | ||
|
||
// NewManagedName creates an IAM acceptable name prefixed with this Cluster API | ||
// implementation's prefix. | ||
func NewManagedName(prefix string) string { | ||
return fmt.Sprintf("%s.%s", prefix, IAMSuffix) | ||
} | ||
|
||
// ProcessPolicyDocument replaces IAMConditions with Condition to work around | ||
// GoFormation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a little bit more context on why this is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extended the comment on both that function and the StatementEntry
type.
GoFormation processes "Condition" keys as CFN intrinsics. Renames Condition to IAMConditions until GoFormation supports IAM properly. Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
Allow AWS ELB to create its own Service Linked AWS IAM role to be able to manage instances linked to an ELB. Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
ae0a487
to
61b17df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #422
Permits ELB, as an Amazon-managed service, to create a role to access EC2 in the customer's account, which is needed to attach the control plane instances to a load balancer.
Special notes for your reviewer:
In order to test this, ELB will create a
AWSServiceRoleForElasticLoadBalancing
using these IAM permissions. If all ELBs are deleted, then this role can be deleted and then the account is reusable for testing this feature.Release note: